package polymorphism.shape;

public class Shapes {
	private static RandomShapeGenerator gen = new RandomShapeGenerator();
	public static void main(String[] args) {
		Shape[] s = new Shape[9];
		System.out.println("99999999999" + s.length);
		for(int i=0;i<s.length;i++)
			s[i] = gen.next();
		System.out.println("111111111111" + s.length);
		for (Shape shp : s) 
			shp.draw();
		System.out.println("22222222222" + s.length);
		
	}

}
